package cn.lxh.user.enums;

import lombok.AllArgsConstructor;

import lombok.Getter;

@Getter
@AllArgsConstructor
public enum WxPublicEnum {
    FENG("1", "风"),
    YUN("2", "云"),

    YU("3", "雨"),

    XUE("4", "雪"),

    SHUANG("5", "霜"),

    LU("6", "露"),

    WU("7", "雾"),

    LEI("8", "雷"),

    QING("9", "晴"),

    YIN("10", "阴")

    ;

    /**
     * 类型
     */
    private String tqtype;
    /**
     * 描述
     */
    private String desc;

    public static String getTqtypeByDesc(String name) {
        for (WxPublicEnum item : WxPublicEnum.values()) {

            if (item.getDesc().equals(name)) {
                return item.getTqtype();
            }
        }
       return "";
    }


}
